﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridView.aspx.cs" Inherits="DataAdapter与DataSet的使用.GridView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
    
                <asp:GridView ID="GridView1" runat="server" 
                              onselectedindexchanged="GridView1_SelectedIndexChanged" 
                              onrowcancelingedit="GridView1_RowCancelingEdit" 
                              onrowdeleting="GridView1_RowDeleting" 
                              onrowupdating="GridView1_RowUpdating">
                    <Columns>
                        <asp:CommandField ButtonType="Button" ShowSelectButton="True" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
                <asp:label runat="server" ID="lblInfo"></asp:label>
    
            </div>
        </form>
    </body>
</html>